   rem autohotkey %~dp0moni2.ahk
   
   
   
    
 :loop
 
  
	
	
	
rem 	;--------------moni2 

wmic process where "name='cmd.exe' " | findstr moni1.bat
IF ERRORLEVEL 1 GOTO notExist_moni2
IF ERRORLEVEL 0 GOTO ifBlockend2
:notExist_moni2
		start "moni1.bat"  %~dp0moni1.bat
		goto ifBlockend2
:okend
 
:ifBlockend2

 ping 127.0.0.1 -n 5

goto loop